
window.Router = Backbone.Router.extend({
    routes:{
        "":"home",
        "appRec/:query":"appRec",  //http://localhost:8080/index.html#appRec/0
        "cur":"cur",
        "ntl":"noticeList",
        "ntl/:query" : "ntlDetail",
        "home":"home",
        "remin" : "reminderSwitch"
    },
    initialize:function(){
        this.page = $('.page');
    },
    appRec:function(query){
        this.page.addClass('none');
        $('#appdownload').removeClass('none');
        $('#homePageFooter').remove();
        appRecCollectioin.fetch(query);
    },
    account:function(){
        this.page.addClass('none');
        $('#appdownload').removeClass('none');
        $('#homePageFooter').remove();
        appRecCollectioin.fetch();
    },
    cur:function(){
        this.page.addClass('none');
        $('#prompt').removeClass('none');
        $('#homePageFooter').remove();
    },
    noticeList:function(){
        this.page.addClass('none');
        $('#noticeList').removeClass('none');
        $('#homePageFooter').remove();
        noticeListCollection.fetch(1,1);
    },
    ntlDetail:function(vid){
        this.page.addClass('none');
        $('#noticeDetail').removeClass('none');
        $('#homePageFooter').remove();
        noticeListCollection.detailFetch(vid);
    },
    home:function(){
        this.page.addClass('none');
        $('#homePage').removeClass('none');
        homePageModel.fetch();
    },
    reminderSwitch:function(){
        this.page.addClass('none');
        $('#reminderSwitch').removeClass('none');
        $('#homePageFooter').remove();
        reminderCollection.fetch();
    }
});